<template>
  <div id="app">
    <div id="nav">
      <!-- 需要声明注册router-link -->
      <router-link to="/">Home</router-link>|
      <router-link to="/about">About</router-link>
    </div>

    <!-- 路由出口，容器的作用，怎么刷新和替换的 -->
    <!-- 如何实现router-view的替换 -->
    <router-view />
  </div>
</template>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
